package cn.nuofankj.myblog.repository;

import cn.nuofankj.myblog.entity.FriendsType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author xifanxiaxue
 * @date 2020-12-20
 * @desc
 */
@Repository
public interface FriendsTypeRepository extends JpaRepository<FriendsType, Long> {

    /**
     * 根据类型名
     *
     * @param name
     * @return
     */
    FriendsType findAllByName(String name);
}
